package com.zhiyou.service.impl;

import com.zhiyou.bean.Upm;
import com.zhiyou.dao.UpmMapper;
import com.zhiyou.service.UpmService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UpmServiceImpl implements UpmService {

    @Resource
    UpmMapper upmMapper;

    @Override
    public List<Upm> getUpmsByUserId(Integer userId) {
        Upm u = new Upm();
        u.setUserId(userId);
        return upmMapper.select(u);
    }
}
